package com.tbgov.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tbgov.entity.Family;
import com.tbgov.entity.FamilyMember;
import com.tbgov.entity.FamilyPovertyOption;
import com.tbgov.entity.pojo.ResultPage;
import com.tbgov.entity.vo.FamilyList;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
 * <p>
 * 家庭信息 服务类
 * </p>
 *
 * @author 1st
 * @since 2024-11-19
 */
public interface IFamilyService extends IService<Family> {

    void addOrEdit(Family family);

    void del(List<Long> collect);

    ResultPage<FamilyList> queryFamilyList(String keyword, Integer sortType, Integer sort);

    FamilyList queryFamilyDetail(Long id, Integer type ,HttpServletRequest request);

    FamilyMember queryMemberDetail(Long id,FamilyMember member, HttpServletRequest request);

    /**
     *
     * @param member
     * @param type 是否是单个编辑 0:否  1:是
     */
    void addOrEdit(FamilyMember member, Integer type);

    void delMember(List<Long> collect);

    List<FamilyPovertyOption> queryPovertyOptions();
}
